<script>
export default {
  props: {
    zn: {
      type: String,
      default: ''
    },
    en: {
      type: String,
      default: ''
    },
    color: {
      type: String,
      default: '#fff'
    }
  }
}
</script>

<template>
  <div class="card">
    <header>
      <div class="title" :style="{ color }">
        <div class="en">{{ en }}</div>
        <div class="zn">{{ zn }}</div>
      </div>
      <div class="more">
        <slot name="more"></slot>
      </div>
    </header>
    <article>
      <slot></slot>
    </article>
  </div>
</template>

<style lang="less" scoped>
.card {
  width: 1200px;
  margin: 0 auto;
  padding-top: 82px;
  overflow: hidden;
  header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    .title {
      width: 550px;
      .en {
        font-size: 20px;
        line-height: 28px;
      }
      .zn {
        font-size: 46px;
        line-height: 60px;
      }
    }
    .more {
      flex: 1;
      display: flex;
      justify-content: flex-end;
    }
  }
  article {
    margin-top: 60px;
  }
}
</style>
